﻿using IM.Easy.Core.Jobs;
using Quartz;

namespace IM.Easy.Api.Jobs
{
    public class DemoJob : IJobDefinition
    {
        public static string JobName => "可执行程序案例";
        public DemoJob() { }


        public Task Execute(IJobExecutionContext context)
        {
            var preColor = Console.ForegroundColor;
            Console.ForegroundColor = ConsoleColor.Cyan;
            Console.WriteLine($"这是可执行程序案例：当前时间【{DateTime.Now}】");
            Console.ForegroundColor = preColor;
            return Task.CompletedTask;
        }
    }
}
